package org.example.service;

import org.example.entity.param.ServiceAddParam;
import org.example.entity.param.ServiceDeleteParam;
import org.example.entity.param.ServiceHeartBeatParam;
import org.example.entity.vo.ServiceVO;

import java.util.List;

/**
 * 服务注册接口
 *
 * @author sxt
 * @version 1.0
 * @description TODO
 * @date 2023/7/31 22:08
 */
public interface IRegistryService {

    boolean registry(ServiceAddParam serviceAddParam);

    boolean unRegistry(ServiceDeleteParam serviceDeleteParam);

    List<ServiceVO> discovery(String name);

    boolean hearBeat(ServiceHeartBeatParam serviceHeartBeatParam);
}
